{% if pageData["show"] != "embedded" %}
{% extends '/ic/dashboard.html' %}
{% endif %}
{% block content %}
<div class="row">
    <div class="col-md-12">
        {% for st in pageData['statics'] %}

        <div class="panel-group" id="accordion">
            <div class="panel">
                <div class="panel-heading">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{st.id}}" class="btn giallino btn-lg btn-block collapsed">{{st.title}}</a>

                </div>
                    <div id="collapse{{st.id}}" class="panel-collapse collapse" style="height: 0px;">
                        <div class="panel-body">
<!--
                            <div class="row">
-->
                                <div class="col-sm-12 col-lg-12">{{ st.body }}</div>
<!--
                             </div>
-->
                        </div>
                        </div>
                    </div>

            </div>
        {% endfor %}
        </div>
</div>
     <div class="row">
    <div class="col-md-12">
        {% for ca in pageData["cataloghi"] %}



        <div class="panel panel-info">

            <div class="panel-heading">
                            <h3><i style="color:{{ca.colore_icona_font}}" class="fa {{ca.icona_font}} fa-2x"></i>    &nbsp;{{ca.denominazione}}</h3>
                        </div>
                        <div class="panel-body">
                            <div class="panel-group" id="accordion">
                    {% for st in ca.categoria %}
                                <div class="panel panel-danger">
                                    <div class="panel-heading">
                                        <h4 class="panel-title">
                                            <a data-toggle="collapse" data-parent="#accordion" href="#{{st.denominazione_breve}}" class=" list-group-item collapsed rosino"><i style="color:{{st.colore_icona_font}}" class="fa {{st.icona_font}} fa-2x"></i>    &nbsp;{{st.denominazione}}</a>
                                        </h4>
                                    </div>
                                    <div id="{{st.denominazione_breve}}" class="panel-collapse collapse" style="height: 0px;">
                                        <div class="panel-body">
                                            <div class="list-group">
                              {% for k in st.rilevazioni %}
                                      <a href="/pg/ac_Rilevazioni/Preview?id={{k.id}}&pp=1" data-target="#myModall" role="button" data-toggle="modal" data-backdrop="static"  id="anteprima" class="list-group-item giallino">
                                    {% for k,v in k.titoli().iteritems() %}
                                     <b>{{k}}</b> {{v}} ||
                                     {% endfor %}
                                     </a>
                            {% endfor %}
                                        </div>
                                        </div>
                                            <div class="panel-footer">
                                            {{st.descrizione}}
                                        </div>

                                    </div>
                                </div>
        {% endfor %}
                            </div>
            </div>

        </div>
        {% endfor %}
    </div>
</div>
{% endblock%}
<script type="text/javascript">
$(document).ready(function () {


});
</script>
